var appController = require('../../../SystemManage/server/controllers/App.server.controller'),
	licenseController = require('../../../SystemManage/server/controllers/license.server.controller');

//获取授权信息服务
exports.getLicense = function(req, responseFun){
    licenseController.decodeLicense().then(
    	data => responseFun(null, data)
    ).catch(
    	err => responseFun(err)
    );
};

//更新全部App
exports.updateApps = function(req, responseFun) {
	var apps = req.body.Apps;
	appController.updateApps(apps, function(err, data){
		if(err){
			responseFun(err);
		}
		else{
			responseFun(null, data)
		}
	});
};
